#ifndef MERGED_TEXTURE_PACK_H
#define MERGED_TEXTURE_PACK_H

#include <QObject>
#include <QMap>
#include <QPixmap>
#include <QString>

class MergedTexturePack : public QObject {
  Q_OBJECT
 public:
  explicit MergedTexturePack(QObject* parent = NULL);

  void addPixmap(const QString& filename, const QPixmap& pixmap) {
    pixmaps_.insert(filename, pixmap);
  }

  void setDescription(const QString& description) {
    description_ = description;
  }

  void setPackImage(const QPixmap& pack_image) {
    pack_image_ = pack_image;
  }

 public slots:
  bool save(const QString& filename);

 private:
  QMap<QString, QPixmap> pixmaps_;
  QString description_;
  QPixmap pack_image_;
};

#endif // MERGED_TEXTURE_PACK_H
